package com.daxt.model.service.archives.vo;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;
import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "档案接收数据", description = "档案接收数据")
//@TableName("\"daxt\".\"ARCHIVES_ACCEPT_DATA\"")
@TableName("archives_accept_data")
public class ArchivesAcceptData implements Serializable{
	
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "id", name = "id")
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	@TableField("dataName")
    private String dataName;

	@TableField("dataPath")
    private String dataPath;

	@TableField("areaCode")
    private String areaCode;

	@TableField("deptCode")
    private String deptCode;

	@TableField("sysCode")
    private String arg;

	@TableField("fileMd5")
	private String md5;
	//private Long fileId;

	@TableField("timeStamp")
	private String timeStamp;


	@TableField("state")
	private String state;

	@TableField("createTime")
	@JsonDeserialize(using = LocalDateTimeDeserializer.class)
	@JsonSerialize(using = LocalDateTimeSerializer.class)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建时间", name = "createTime",example = "2019-09-09 00:00:00")
	private LocalDateTime createTime;

	@TableField("updateTime")
	@JsonDeserialize(using = LocalDateTimeDeserializer.class)
	@JsonSerialize(using = LocalDateTimeSerializer.class)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "修改时间", name = "updateTime",example = "2019-09-09 00:00:00")
	private LocalDateTime updateTime;
}